package com.foton.logistic.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

public class Square extends LinearLayout {
	public Square(Context context) {
		super(context);
	}
	public Square(Context context, AttributeSet attrs) {
		super(context, attrs);
	}
	public Square(Context context, AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);
	}
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		super.onMeasure(heightMeasureSpec, heightMeasureSpec);
		//重写此方法后默认调用父类的onMeasure方法,分别将宽度测量空间与高度测量空间传入
	}
}
